<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<h3><spring:message code="label.palsels" /></h3>


	<table class="red-table">
		<tr>
			<th><spring:message code="label.sn" /></th>
			<th><spring:message code="label.status" /></th>
			<th><spring:message code="label.parselDepartureDate" /></th>
			<th><spring:message code="label.parselArrivalDate" /></th>			
			<th>&nbsp;</th>
			<th>&nbsp;</th>
		</tr>
		<c:if test="${!empty parselList}">
			<c:forEach items="${parselList}" var="parsel">
				<tr>
					<td>${parsel.parselSn}</td>
					<td>${parsel.parselStatus}</td>
					<td>${parsel.parselDepartureDate}</td>
					<td>${parsel.parselArrivalDate}</td>				
					<td style="width: 50px;"><a href="editParsel/${parsel.parselId}"><spring:message code="label.edit" /></a></td>
					<td style="width: 50px;"><a href="deleteParsel/${parsel.parselId}"><spring:message code="label.delete" /></a></td>
				</tr>
			</c:forEach>
		</c:if>
	</table>


<div style="margin-left: 500px; margin-top: 20px;">
	<a class="but_1"  href="<c:url value="/index?view=parsel" />">
		<spring:message code="label.add" />
	</a>
</div>


</body>
</html>